package bean;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liu
 */
public class Bicycle {
    private Integer bicycleid;

    private Integer from;

    private Date time;

    private String photourl;

    private Integer lockid;

    private BigDecimal locationx;

    private BigDecimal locationy;

    private Integer status;

    private Float energy;

    private String userName;

    public Bicycle() {
        this.from = 0;
        this.photourl = "";
        this.status = 0;
        this.time = new Date();
        this.locationx = new BigDecimal(0);
        this.locationy = new BigDecimal(0);
        this.energy = 100f;
    }

    public Bicycle(Integer bicycleid, Integer from, Date time, String photourl, Integer lockid, BigDecimal locationx, BigDecimal locationy, Integer status, Float energy, String userName) {
        this.bicycleid = bicycleid;
        this.from = from;
        this.time = time;
        this.photourl = photourl;
        this.lockid = lockid;
        this.locationx = locationx;
        this.locationy = locationy;
        this.status = status;
        this.energy = energy;
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getBicycleid() {
        return bicycleid;
    }

    public void setBicycleid(Integer bicycleid) {
        this.bicycleid = bicycleid;
    }

    public Integer getFrom() {
        return from;
    }

    public void setFrom(Integer from) {
        this.from = from;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getPhotourl() {
        return photourl;
    }

    public void setPhotourl(String photourl) {
        this.photourl = photourl == null ? null : photourl.trim();
    }

    public Integer getLockid() {
        return lockid;
    }

    public void setLockid(Integer lockid) {
        this.lockid = lockid;
    }

    public BigDecimal getLocationx() {
        return locationx;
    }

    public void setLocationx(BigDecimal locationx) {
        this.locationx = locationx;
    }

    public BigDecimal getLocationy() {
        return locationy;
    }

    public void setLocationy(BigDecimal locationy) {
        this.locationy = locationy;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Float getEnergy() {
        return energy;
    }

    public void setEnergy(Float energy) {
        this.energy = energy;
    }
}